<nav class="navbar navbar-default navbar-static-top">
    <div class="navbar-header">
        <div class="logo text-center">
            <a href="{{ url('/') }}">
                <img src="{{ settings('site_logo') . '?imageView2/1/w/100/h/50' }}"  alt="{{ settings('site_name') }}">
            </a>
            <p class="slogan pull-right">{{ settings('site_slogan') }}</p>
        </div>
        @inject('widget', 'App\Http\Controllers\Blog\WidgetController')
        <ul class="nav nav-tabs navbar-right">
            @foreach($widget->navbar() as $navbar)
            <li @if(request()->path() == $navbar->url ) class="active" @endif><a href="{{ url($navbar->url) }}" data-name="{{ request()->path() }}">{{ $navbar->name }}</a></li>
            @endforeach
        </ul>
    </div>
</nav>